<%@ page contentType="text/html;charset=UTF-8" language="java" isELIgnored="false" %>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<html>
<head>
    <title>首页</title>
    <jsp:include page="include/resource.jsp"/>
</head>
<body>
<jsp:include page="include/header.jsp"/>
<div class="container" style="padding-left: 150px;padding-right: 150px">

    <div class="text-center">
        <h1>${route.address}</h1>
        <span class="label label-primary">出行人数：${route.num}</span>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
        <span class="label label-success">出发时间：${route.gotime} </span>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
        <span class="label label-info">联系方式：${route.phone} </span>

        <a onclick="history.go(-1)" class="pull-right btn btn-default">返回</a>
        <c:if test="${(st ==null || st <= 0) && (route.num > route.numyes)}"><a href="/route/bm.do?routeid=${route.id}" class="pull-right btn btn-warning">报名</a></c:if>
        <hr/>
    </div>
    <div style="margin-bottom: 20px">${route.content}</div>
</div>

<script>
    var msg = "${msg}";
    if(msg.length > 0){alert(msg);}

</script>
</body>
</html>
